package com.zdft.promotion.asyn.service.api;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zdft.promotion.asyn.bean.AsynPushBean;
import com.zdft.promotion.rabbitmq.domain.QueueEnum;

/**
 * 异步推送处理类
 * @author dxh
 */
public interface IAsynDealService extends IService<AsynPushBean> {

    /**
     * 通过MQ异步推送
     * @param bean
     * @param queueEnum
     */
    void addMq(AsynPushBean bean, QueueEnum queueEnum);

    /**
     * 通过key查询异步处理信息实体
     * @param key
     * @return
     */
    AsynPushBean getAsynPushByKey(String key);

}
